package xyz.lwm.lazycat.web.annocation;

import xyz.lwm.lazycat.utility.reflect.AliasTo;
import xyz.lwm.lazycat.web.handle.HandlerType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * http post
 *
 * @author lwm
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Http(handlerType = HandlerType.POST)
public @interface Post {

    /**
     * @return The path of the request.
     */
    @AliasTo(annotation = Http.class, value = "path")
    String value() default "";

}
